<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.staticfile.net/vue/2.7.8/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet">
</head>

<body>
<div id="app">
    <h1>表单复选框</h1>
    <input type="checkbox" id="生化危机" value="生化危机" v-model="checkGames">
    <label for="生化危机">生化危机</label>

    <input type="checkbox" id="模拟飞行" value="模拟飞行" v-model="checkGames">
    <label for="模拟飞行">模拟飞行</label>

    <input type="checkbox" id="塞尔达" value="塞尔达" v-model="checkGames">
    <label for="塞尔达">塞尔达</label>

    <p>选择的游戏是： {{checkGames}}</p>

</div>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            checkGames: []
        }
    });
</script>
</body>
</html>